package com.qfedu.microuser.point.controller;

import com.qfedu.common.core.common.R;
import com.qfedu.microuser.point.service.PointInfoService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/user/point")
public class PointInfoController {
    @Resource
    private PointInfoService pointInfoService;


    @PostMapping("/remote/add")
    public R remoteAddPoint(Integer pointType) {

        pointInfoService.remoteAddPoint(pointType);
        return R.ok();
    }
}
